package com.culture.config.common.model;

import lombok.Data;
import lombok.experimental.Accessors;
 
@Data
@Accessors(chain=true)
public class PageInfo {
	Long total;	
	Integer pageNum;
	Integer pageSize;
	Integer totalPage;	
	
	public PageInfo() {
		this.pageNum = 0;
		this.pageSize = 1;
		this.total = 0L;
		this.totalPage = 0;
	}
	
	public PageInfo(Integer pageNum,Integer pageSize) {		
		this.pageNum = pageNum;
		this.pageSize = pageSize;		
	}
	
	public PageInfo(Long total,Integer pageSize,Integer pageNum) {		
		this.total = total;
		this.pageSize = pageSize;
		this.pageNum = pageNum;
		
	}
	
	public PageInfo(Long total,Integer pageSize,Integer pageNum,Integer totalPage) {
		this.pageNum = pageNum;
		this.pageSize = pageSize;
		this.total = total;
		this.totalPage = totalPage;
	}
}
